package com.itlong.cloud.sdk.dao;


import com.itlong.cloud.POJO.PO.HotParamFlowRule;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 * @Description:
 * </desc>
 * 
 * @author: chengshican
 *  @Date: 2020-10-23 19:23
 *  
 */

@Mapper
@Repository
public interface IHotParamFlowRuleDao {
    
    
    
    /**
    *<desc>
    * 查询热点规则
    *</desc>
    *
    * @Author  chengshican
    * @Date   2020-10-23 19:24
    * @Param  
    * @Return      
    * @Exception   
    * 
    */
    List<HotParamFlowRule> getHotParamFlowRule(Map<String, Object> param);



    /**
    *<desc>
    * 新增规则
    *</desc>
    *
    * @Author  chengshican
    * @Date   2020-11-24 9:46
    * @Param
    * @Return
    * @Exception
    *
    */
    Integer save(Map<String, Object> map);




    /**
    *<desc>
    * 根据参数查询限流规则
    *</desc>
    *
    * @Author  chengshican
    * @Date   2020-11-24 9:52
    * @Param  
    * @Return      
    * @Exception   
    * 
    */
    HotParamFlowRule getFlowRuleByParam(Map<String, Object> param);
}
